package com.health.ts.constant;
import java.util.Map;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
/**
 * 分页传递参数
 * @author Administrator
 * @param <T>
 */
public class FrontPage {

	// 每页显示条数
	private int pageSize;

	// 当前页数
	private int pageNumber;
	
	//总页数
	private int totalPage;
	
	//多条件载体
	private Map<String,Object> params;
	
	
	public int getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	
	public int getPageNumber() {
		return pageNumber;
	}

	public void setPageNumber(int pageNumber) {
		this.pageNumber = pageNumber;
	}
	
	public Map<String, Object> getParams() {
		return params;
	}

	public void setParams(Map<String, Object> params) {
		this.params = params;
	}

	// 获取mybatisPlus封装的Page对象
	public <T> Page<T> getPagePlus() {
		return new Page<T>(this.pageNumber, this.pageSize);
	}
}
